package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

public interface ApArticleService extends IService<ApArticle>{
    //保存
    ResponseResult saveApArticle(ArticleDto articleDto);

    //加载文章列表
    ResponseResult load(Short loadType, ArticleHomeDto dto);

    //加载文章详情(根据文章id)
    ResponseResult loadArticleInfo(ArticleInfoDto dto);

    //加载文章行为
    ResponseResult loadArticleBehavior(ArticleInfoDto dto);
}